package observer.deformation;

/**
 * 主题抽象接口
 */
public abstract class Subject {

    private String name;

    abstract void addObserver(Observer observer);

    abstract void removeObserver(Observer observer);

    abstract void notifyObservers();

    abstract void change();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
